#ifndef _LOCK_H_
#define _LOCK_H_

enum LStatus
{
	FREE,
	NOT_FREE
};

typedef struct Lock
{
	enum LStatus lockStatus;
	struct linkedlist *list;
        int init;
}Lock;

void Lock_Init(Lock *l);
void Lock_Acquire(Lock *l);
void Lock_Release(Lock *l);
int Lock_Destroy(Lock *l);


static const int ERR_LOCK_BUSY = -1;

#endif
